Wednesday, November 14, 2012

NIS(Network Information Service)



NIS(Network Information Service)
NIS is also called as YP. YP stands for Yellow Pages.
An NIS maintains a central directory of user and group information,hostname etc ina computer network
Server Configuration
Service Profile
Packages:ypserv,ypbind,yptools
Configuration file;/var/yp/Makefile
Daemon:ypserv,yppassdd
Portnumbers:NIS uses random port numbers
Install the packages
[root@nisserver~]#yum install ypserve* -y
[root@nisserver~]#yum install ypbind* -y
[root@nisserver~]#yum install yptool* -y

Set the NISDOMAIN in the /etc/sysconfig/network file as shown below.
[root@nisserver~]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Raju
GATEWAY=192.168.0.254
NISDOMAIN=raju.com
 [root@nisserver~]# vi /etc/sysconfig/authconfig
USENIS=YES
 Create the database
To create the database execute the following command and type yes
[root@nisserver~]#/usr/lib/yp/ypinit –m 
[root@nisserver~]#ls –l /var/yp  #will list the  created databases
Edit the configuration file
[root@nisserver yp~]#make #to update database
 Edit main configuration file
[root@nisserver~]# vi /var/yp/Makefile
NOPUSH=false
MERGE_PASSWD=false
 Start the services
[root@nisserver~]#Service ypserve restart
[root@nisserver~]#Service yppasswdd restart
[root@nisserver~]#Service portmap restart
[root@nisserver~]#Service nfs restart
[root@nisserver~]#Service ypbind restart
[root@nisserver~]#Service ypxfrd restart
Note:Configure nfs with NIS to provide users home directory in client machine they logged in
Client Configuration
[root@nisclient~]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Koti
GATEWAY=192.168.0.1
NISDOMAIN=raju.com
 Install ypbind package
[root@nisclient~]#yum installypbind* -y
[root@nisclient~]#service ypbind restart
[root@nisclient~]#system-config-authentication
Select  Use NIS
                [OK]
Select
   Domanin=>raju.com
  Server=>192.168.0.254

To configure a Windows client
Download the pGina plug-in for windows and install it.
·         Select Start ->Programs->pGina->Configuration Tool to run the pGina configuration tool.
·         Then click on  "Plugin" tab and click "Browse." Enter the path to the .dll that you just installed that performs the NIS function. The default location is c:\pGina\plugins\NISplugin.dll
·         Then on the "Plugin" tab, click the "Configure" button. In the dialog box named, appropriately, "Dialog," enter the name of your NIS domain (raju.com in the example).
·         You'll also see a text box in which to enter the "Password Map" file. Enter passwd.byname. This is the table in NIS that is used when you pass in a username at logon time.
·         At the "Dialog" dialog box, click "Save." At the "pGina Configuration" window, click "OK."
·         Reboot the client machine to save the settings.
·         After reboot we will find pGina login as shown below 


Stay Connected With Free Updates!

Subscribe via Email

Follow me!

Leave Your Comment Below If You Like This Post

0 comments: